import request from '../../util/axios'

// 基础检测项-树形结构
export const getTreeTestItem = () => request({
  url: '/yuyi-category-boot/api/metadata/checkItem/tree'
})
// 新增基础检测项
export const addTreeTestItem = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkItem',
  method: 'post',
  data
})
// 删除基础检测项
export const editTreeTestItem = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkItem',
  method: 'put',
  data
})
// 删除基础检测项
export const delTreeTestItem = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkItem',
  method: 'delete',
  data
})

// 分页查询检测环节-检测项
export const getTestItemList = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkStandard/paging',
  method: 'post',
  data
})
// 删除检测环节-检测项
export const delTestItemList = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkStandard',
  method: 'delete',
  data
})
// 编辑检测环节-检测项
export const editTestItemList = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkStandard',
  method: 'put',
  data
})
// 删除检测环节-检测项
export const addTestItemList = (data) => request({
  url: '/yuyi-category-boot/api/metadata/checkStandard',
  method: 'post',
  data
})
